# src/utils/paths.py
from pathlib import Path

# 获取当前文件路径（即 src/utils/paths.py）
current_dir = Path(__file__).resolve().parent

# 计算项目根目录：向上回溯两级（src/utils -> src -> project_root）
PROJECT_ROOT = current_dir.parent.parent

# 定义常用路径
DATA_DIR = PROJECT_ROOT / "data"
RAW_DATA_DIR = DATA_DIR / "raw"
PROCESSED_DATA_DIR = DATA_DIR / "processed"
SRC_DIR = PROJECT_ROOT / "src"
NOTEBOOKS_DIR = PROJECT_ROOT / "notebooks"
DOCS_DIR = PROJECT_ROOT / "docs"
FIG_DIR = DATA_DIR / "fig"

# 导出所有路径
__all__ = [
    'PROJECT_ROOT', 'DATA_DIR', 'RAW_DATA_DIR', 'PROCESSED_DATA_DIR',
    'SRC_DIR', 'NOTEBOOKS_DIR', 'DOCS_DIR', 'FIG_DIR'
]

print(PROJECT_ROOT)
